<#include "../header.html">
<script type="text/javascript">
	function alertUsers() {
		JFT.popupPage("userAction.do?method=queryUserAlert", "选择用户", 800, 800);
	}
	function queryStatiData(){
		beginPageLoading();
		$("#dataEle").html("");
		ajaxPost("statiAction.do?method=queryStatiData", {userId:$("#userId").val(),sTime:$("#sTime").val(),eTime:$("#eTime").val()}, function(data){
			endPageLoading();
			if(data["resultCode"] == 0){
				var resultData = data["resultData"];
				if(resultData!=null&& resultData.length>0){
					var dataHtml;
					for(var i = 0;i<resultData.length;i++){
						dataHtml += '<tr>';
						var obj = resultData[i];
						for(var j = 1;j<=4;j++){
							dataHtml+= '<td>'+obj["value_"+j]+'</td>';
						}
						dataHtml += '"</tr>"';
					}
					$("#dataEle").html(dataHtml);
				}
				return;
			}else {
				alert(data["resultMsg"]);
			}
		});
	}
</script>
<div class="c_nav">
	<span>管理选项：</span>
	<a href="statiAction.do?method=index">管理首页</a>
	<a href="javascript:location.reload()"> | [刷新页面]</a>
</div>
<div class="c_box bg_white">
	<div class="c_topic">统计</div>
		<div id="dataQueryArea" class="c_form_6">
			<ul class=" c_form-label-6 l_mb">
				<li>
					<span class="e_label">用户账号：</span>
					<span class="e_input">
						<input type="text" readonly="readonly" onclick="alertUsers()" name="account" id="account" desc="用户账号" value="" placeholder="点击选择用户"/>
						<input type="hidden" name="userId" id="userId" desc="用户ID" value=""/>
						<input type="hidden" name="uplevel" id="uplevel" desc="用户ID" value=""/>

					</span>
				</li>
				<li>
					<span class="e_label">用户名称：</span>
					<span class="e_input">
						<input type="text" readonly="readonly" onclick="alertUsers()" name="userName" id="userName" desc="用户名称" value="" placeholder="点击选择用户"/>
					</span>
				</li>
				<li>
					<span class="e_label">开始时间：</span>
					<span class="e_input">
						<input type="text" name="sTime" id="sTime" desc="开始时间" value="" datatype="date" readonly="readonly" min="2000-01-01" max="2050-12-31"  format="yyyy-MM-dd" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
					</span>
				</li>
				<li>
					<span class="e_label">结束时间：</span>
					<span class="e_input">
						<input type="text" name="eTime" id="eTime" desc="结束时间" value="" datatype="date" readonly="readonly" min="2000-01-01" max="2050-12-31"  format="yyyy-MM-dd" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
					</span>
				</li>
				<li>
					<button type="button" onclick="queryStatiData();" class="l_ml e_btn-form">查询</button>
				</li>
			</ul>
		</div>
	</div>
	<div class="c_table e_center l_mt">
		<table bind="table" checkboxName="dataId" checkAllId="checkedAll">
			<thead>
				<tr>
					<th>类别/状态</th>
					<th>创建</th>
					<th>成功</th>
					<th>合计</th>
				</tr>
			</thead>
			<tbody id = "dataEle">

			</tbody>
		</table>
	</div>
</div>
<#include "../footer.html">